import request from './request'
// 发送邮件
export function sEmail(data) {
    return request({
        url: '/api/auth/register/email/send',
        method: 'post',
        data
    })
}
// 改密码时发邮件
export function forgetEmail1(data) {
    return request({
        url: '/api/auth/forget/email/send',
        method: 'post',
        data
    })
}
// 邮箱码验证
export function forgetEmail2(data) {
    return request({
        url: '/api/auth/forget/email/check',
        method: 'post',
        data
    })
}
// 开户时发邮件
export function merchantOpeningEmail1(data) {
    return request({
        url: '/api/merchant/merchantOpening/email/send',
        method: 'post',
        data
    })
}
// 开户邮箱码验证
export function merchantOpeningEmail2(data) {
    return request({
        url: '/api/merchant/merchantOpening/email/check',
        method: 'post',
        data
    })
}
// 商户申请保存
export function merchantOpeningSave(data) {
    return request({
        url: '/api/merchant/merchantOpening/save',
        method: 'post',
        data
    })
}
// 查询商户申请
export function merchantOpeningFind() {
    return request({
        url: '/api/merchant/merchantOpening/findBy',
        method: 'get'
    })
}
// 查询商户申请记录
export function merchantaa1() {
    return request({
        url: '/api/merchant/merchantOpening/audit',
        method: 'get'
    })
}
// 重置密码
export function forgetEmail3(data) {
    return request({
        url: '/api/auth/forget/email/resetpass',
        method: 'post',
        data
    })
}
// 注册接口
export function sRegister(data) {
    return request({
        url: '/api/auth/register/account/register',
        method: 'post',
        data
    })
}
// 登录接口
export function sLogin(data) {
    return request({
        url: '/api/auth/login',
        method: 'post',
        data
    })
}
// 退出登录接口
export function sLoginOut(data) {
    return request({
        url: '/api/auth/logout',
        method: 'post',
        data
    })
}
// 随机验证码
export function sKapcha(data) {
    return request({
        url: '/api/common/kaptcha',
        method: 'post',
        data
    })
}
//  * 上传
export const uploadPolicy = async () => {
    return await request({
        url: "/api/common/upload/policy",
        method: "get",

    })
};